Skip to content

[codex] feat(tg): add inline selection menus#431

Merged
lsdefine merged 1 commit into
lsdefine:mainfrom
szdtzpj:codex/issue-428-429-tg-inline-selection
May 20, 2026
Merged

[codex] feat(tg): add inline selection menus#431
lsdefine merged 1 commit into
lsdefine:mainfrom
szdtzpj:codex/issue-428-429-tg-inline-selection

Conversation

@szdtzpj
Copy link
Copy Markdown
Contributor

@szdtzpj szdtzpj commented May 19, 2026

Summary

  • Make Telegram /llm show an inline keyboard so model switching is one tap instead of typing a numeric reply.
  • Add Telegram ask_user(..., candidates=...) multi-select support when the question asks for [多选] / multi-select, matching TUI v2 behavior with a Done confirmation.
  • Keep single-select behavior unchanged and add isolated tests for Telegram inline selection flows.

Fixes #428
Fixes #429

Validation

  • python -m unittest tests.test_tgapp_inline_selection
  • python -m unittest discover -s tests -p test_*.py
  • python -m py_compile frontends\tgapp.py tests\test_tgapp_inline_selection.py
  • git diff --check

Copy link
Copy Markdown
Owner

@lsdefine lsdefine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. inline selection 实现简洁完整,边界处理到位。

@lsdefine lsdefine merged commit b990cf3 into lsdefine:main May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TG 端 ask_user 的 candidates 固定为单选,与 TUI v2 行为不一致 /llm should use Inline Keyboard like ask_user does

2 participants